package com.vcredit.creditcat.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.vcredit.creditcat.model.AuthNetcredit;
import com.vcredit.creditcat.persistence.AuthNetcreditExtMapper;
import com.vcredit.creditcat.persistence.base.AuthNetcreditMapper;

/**
 * 
 **/
@Service
public class AuthNetcreditService {
	@Autowired
	private AuthNetcreditMapper mapper;
	@Autowired
	private AuthNetcreditExtMapper extMapper;

	public void insert(AuthNetcredit obj) {
		mapper.insert(obj);
	}

	public void update(AuthNetcredit obj) {
		mapper.update(obj);
	}

	public List<AuthNetcredit> findAll() {
		return mapper.findAll();
	}

	public List<AuthNetcredit> find(AuthNetcredit obj) {
		return mapper.find(obj);
	}

	public AuthNetcredit findByProcessId(Long processId) {
		return extMapper.findByProcessId(processId);
	}
}